﻿using Dora.Orm.Core.Domain.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dora.Services.AdminUser.Entities
{
    /// <summary>
    /// 机构文档表实体对象
    /// </summary>
    [SugarTable("org_doc")]
    public class OrgDocEntity : Entity<int>
    {
        #region model


        /// <summary>
        /// 顶级机构Id;即大社
        /// </summary>
        public int TopOrgId { get; set; }

        /// <summary>
        /// 机构Id;上传人所在orgid
        /// </summary>
        public int OrgId { get; set; }

        /// <summary>
        /// 文档类型;1系统文档2企业文档
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// 文档名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 文档扩展名
        /// </summary>
        public string DocExt { get; set; }

        /// <summary>
        /// 文档大小;单位字节B
        /// </summary>
        public int DocSize { get; set; }

        /// <summary>
        /// 文档地址
        /// </summary>
        public string DocUrl { get; set; }

        /// <summary>
        /// 预览地址
        /// </summary>
        public string PreviewUrl { get; set; }

        /// <summary>
        /// 排序;倒序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否置顶
        /// </summary>
        public short IsTop { get; set; }

        /// <summary>
        /// 置顶时间
        /// </summary>
        public DateTime TopTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public short IsDeleted { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        public Guid? CreatedUserId { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 更新人Id
        /// </summary>
        public Guid? UpdatedUserId { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdatedUserName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }

        #endregion
        #region extend
        #endregion
    }
}
